﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="WorkTimeOut.aspx.cs" Inherits="WorkTimeN_WorkTimeOut" %>

<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
<InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster" AllowAdd="True" AllowDelete="True" AllowPrint="True" AllowUpdate="True" AlwaysClose="False" AutoApplyForInsert="False" AutoRecordLock="False" AutoRecordLockMode="NoneReload" CacheDataSet="True" CommandName="" CommandText="" Eof="True" KeyValues="" LastIndex="-1" Marker="'" MasterDataSource="" PacketRecords="100" QuotePrefix="[" QuoteSuffix="]" RemoteName="" SelectCommand="" TableName="" DataMember="WorkTime_Out">
        </InfoLight:WebDataSource>
        <InfoLight:WebDataSource ID="WEmp" runat="server" SelectAlias="Usasdb" SelectCommand="SELECT     &#13;&#10;Employees.EmployeeID, &#13;&#10;Employees.EmpName, &#13;&#10;CompanyJob.JobName, &#13;&#10;Department.DepartmentName&#13;&#10;FROM         &#13;&#10;Employees INNER JOIN&#13;&#10;                      Department ON Employees.DepartmentId = Department.DepartmentId                   INNER JOIN&#13;&#10;                      CompanyJob ON Employees.JobId = CompanyJob.JobId&#13;&#10;WHERE     (Employees.EmpStatus = 1)" CacheDataSet="True">
        </InfoLight:WebDataSource>
        <InfoLight:WebDefault ID="WebDefault1" runat="server" DataMember="WorkTime_Out" DataSourceID="Master">
            <Fields>
                <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="OutId" />
                <InfoLight:DefaultFieldItem DefaultValue="GetEmployeeId()" FieldName="EmployeeId" />
                <InfoLight:DefaultFieldItem DefaultValue="_Today" FieldName="CurrDate" />
                <InfoLight:DefaultFieldItem DefaultValue="8" FieldName="OutHour" />
                <InfoLight:DefaultFieldItem DefaultValue="30" FieldName="OutSecond" />
                <InfoLight:DefaultFieldItem DefaultValue="17" FieldName="BackHour" />
                <InfoLight:DefaultFieldItem DefaultValue="00" FieldName="BackSecond" />
            </Fields>
        </InfoLight:WebDefault>
        <InfoLight:WebValidate ID="WebValidate1" runat="server" AltRowCss="" DataMember="WorkTime_Out"
            DataSourceID="Master" ForeColor="Red" RowCss="" 
        ValidateStyle="ShowDialog"><Fields>
<InfoLight:ValidateFieldItem FieldName="OutId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="EmployeeId" CheckNull="True"></InfoLight:ValidateFieldItem>
                <InfoLight:ValidateFieldItem FieldName="CurrDate" Validate="ValidateDateFrom()"></InfoLight:ValidateFieldItem>
</Fields>
</InfoLight:WebValidate>
  <FLTools:FLWebNavigator ID="FLWebNavigator1" runat="server" BindingObject="WebFormView1"
            ShowDataStyle="FormViewStyle" StatusStrip="WebStatusStrip1" 
        CtlHeight="25" Width="100%" AutoSubmit="True" CssClass="NavigatorBar" 
        oncommand="FLWebNavigator1_Command">
            <NavControls>
                <InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Add3_C.gif" ImageUrl="../Image/UIPics/Add_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Add2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Update" ControlText="update" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Edit3_C.gif" ImageUrl="../Image/UIPics/Edit_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Edit2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Delete" ControlText="delete" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Delete3_C.gif" ImageUrl="../Image/UIPics/Delete_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Delete2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Apply" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Apply3_C.gif" ImageUrl="../Image/UIPics/Apply_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Apply2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Abort" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Abort3_C.gif" ImageUrl="../Image/UIPics/Abort_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Abort2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Query" ControlText="query" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../image/uipics/Query3_C.gif" ImageUrl="../image/uipics/Query_C.gif"
                    MouseOverImageUrl="../image/uipics/Query2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Submit" ControlText="submit" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Submit_C.gif"
                    MouseOverImageUrl="../image/uipics/Submit2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Approve" ControlText="approve" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../Image/UIPics/Approve_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Approve2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Return" ControlText="return" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Return_C.gif"
                    MouseOverImageUrl="../image/uipics/Return2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Reject" ControlText="reject" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Reject_C.gif"
                    MouseOverImageUrl="../image/uipics/Reject2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Notify" ControlText="notify" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Notify_C.gif"
                    MouseOverImageUrl="../image/uipics/Notify2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="FlowDelete" ControlText="flowdelete" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/FlowDelete_C.gif"
                    MouseOverImageUrl="../image/uipics/FlowDelete2_C.gif" Size="70">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Plus" ControlText="plus" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Plus_C.gif"
                    MouseOverImageUrl="../image/uipics/Plus2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Pause" ControlText="pause" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Pause_C.gif"
                    MouseOverImageUrl="../image/uipics/Pause2_C.gif" Size="48">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlName="Comment" ControlText="comment" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="" ImageUrl="../image/uipics/Comment_C.gif"
                    MouseOverImageUrl="../image/uipics/Comment2_C.gif" Size="48">
                </InfoLight:ControlItem>
            </NavControls>
            <FLStates>
                <FLTools:FLWebNavigatorStateItem StateText="Approve" VisibleControls="Approve;Return;Notify;Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Continue" VisibleControls="Submit;Notify;Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Inquery" VisibleControls="Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Notify" VisibleControls="Notify;FlowDelete;Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Return" VisibleControls="Submit;Reject;Notify" />
                <FLTools:FLWebNavigatorStateItem StateText="Submit" VisibleControls="Submit;Notify;Pause" />
                <FLTools:FLWebNavigatorStateItem StateText="None" VisibleControls="" />
                <FLTools:FLWebNavigatorStateItem StateText="Plus" VisibleControls="Approve;Notify;Comment" />
                <FLTools:FLWebNavigatorStateItem StateText="Lock" VisibleControls="Notify" />
                <FLTools:FLWebNavigatorStateItem StateText="FSubmit" VisibleControls="Submit;Notify" />
                <FLTools:FLWebNavigatorStateItem StateText="RSubmit" VisibleControls="Submit;Return;Notify" />
            </FLStates>
            <NavStates>
                <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                    StateText="Initial">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                    StateText="Browsed">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="OK;Cancel;Apply;Abort" StateText="Inserting">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="OK;Cancel;Apply;Abort" StateText="Editing">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Applying">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="First;Previous;Next;Last;Add;Update;Delete;Apply;Abort;Export"
                    StateText="Changing">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Querying">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Printing">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="" StateText="Normal">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="Add" StateText="Insert">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="Update" StateText="Modify">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="Query" StateText="Inquery">
                </InfoLight:WebNavigatorStateItem>
                <InfoLight:WebNavigatorStateItem EnableControls="Query;Update" StateText="Prepare">
                </InfoLight:WebNavigatorStateItem>
            </NavStates>
        </FLTools:FLWebNavigator>
        <InfoLight:WebFormView ID="WebFormView1" runat="server" 
        DataSourceID="Master" CellPadding="5" LayOutColNum="2" ForeColor="#333333" 
        Height="87px" Width="100%" BackColor="Silver" BorderColor="White" 
        BorderStyle="Groove" BorderWidth="2px" OnDataBound="WebFormView1_DataBound">
            <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
            <EditRowStyle BackColor="LightCyan" ForeColor="Blue" />
            <RowStyle BackColor="#EFF3FB" ForeColor="Navy" />
            <PagerStyle ForeColor="White" HorizontalAlign="Center" BackColor="PowderBlue" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <InsertRowStyle BackColor="LightCyan" ForeColor="Blue" />
            <EditItemTemplate>
                <table class="container_table" style="width: 700px">
                    <tr>
                        <td style="width: 56px">
                            <asp:Label ID="CaptionOutId" runat="server" ForeColor="Red" Text="编号:"></asp:Label></td>
                        <td style="width: 192px">
                            <asp:TextBox ID="OutIdTextBox" runat="server" ReadOnly="True" Text='<%# Bind("OutId") %>'
                                Width="120px"></asp:TextBox></td>
                        <td style="width: 34px">
                            &nbsp;</td>
                        <td style="width: 317px">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 56px; height: 28px;">
                            <asp:Label ID="CaptionEmployeeId" runat="server" ForeColor="Red" Text="员工工号:"></asp:Label></td>
                        <td style="width: 192px; height: 28px;">
                            <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="117px" OpenRefHeight="550">
                                <Columns>
                                    <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                                </Columns>
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 34px; height: 28px;">
                            <asp:Label ID="CaptionCurrDate" runat="server" Text="日期:"></asp:Label></td>
                        <td style="width: 317px; height: 28px;">
                        
                                               
<asp:TextBox ID="ZLTextBox1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" 
                                Text='<%# Bind("CurrDate", "{0:d}") %>' CssClass="Wdate"/></asp:TextBox>

                          </td>
                    </tr>
                    <tr>
                        <td style="width: 56px">
                            <asp:Label ID="CaptionOutTime" runat="server" Text="起始时间:"></asp:Label></td>
                        <td style="width: 192px">
                            <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("OutHour") %>'
                                Width="40px">
                                 <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                                ID="WebDropDownList2" runat="server" AutoInsertEmptyData="False" DriverObject=""
                                Filter="" FilterObject="" SelectedValue='<%# Bind("OutSecond") %>' Width="40px">
                         <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                        <td style="width: 34px">
                            <asp:Label ID="CaptionBackTime" runat="server" Text="终止时间:" Width="61px"></asp:Label></td>
                        <td style="width: 317px">
                            <InfoLight:WebDropDownList ID="WebDropDownList3" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("BackHour") %>'
                                Width="40px">
                                <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                                ID="WebDropDownList4" runat="server" AutoInsertEmptyData="False" DriverObject=""
                                Filter="" FilterObject="" SelectedValue='<%# Bind("BackSecond") %>' Width="40px">
                              <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                    </tr>
                    <tr>
                        <td style="width: 56px">
                            <asp:Label ID="CaptionDestination" runat="server" Text="目的地:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="DestinationTextBox" runat="server" MaxLength="95" Text='<%# Bind("Destination") %>'
                                Width="440px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 56px">
                            <asp:Label ID="CaptionRemark" runat="server" Text="备注:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="RemarkTextBox" runat="server" MaxLength="95" Text='<%# Bind("Remark") %>'
                                Width="440px"></asp:TextBox></td>
                    </tr>
                </table>
            </EditItemTemplate>
            <InsertItemTemplate><table class="container_table" style="width: 700px">
                <tr>
                    <td style="width: 56px">
                        <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="编号:"></asp:Label></td>
                    <td style="width: 192px">
                        <asp:TextBox ID="TextBox3" runat="server" ReadOnly="True" Text='<%# Bind("OutId") %>'
                            Width="120px"></asp:TextBox></td>
                    <td style="width: 34px">
                        &nbsp;</td>
                    <td style="width: 317px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 56px">
                        <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="员工工号:"></asp:Label></td>
                    <td style="width: 192px">
                        <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="117px" OpenRefHeight="550">
                            <Columns>
                                <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                            </Columns>
                        </InfoLight:WebRefVal>
                    </td>
                    <td style="width: 34px">
                        <asp:Label ID="Label3" runat="server" Text="日期:"></asp:Label></td>
                    <td style="width: 317px">
                    
                          
<asp:TextBox ID="ZLTextBox2" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" 
                            Text='<%# Bind("CurrDate", "{0:d}") %>' CssClass="Wdate" Width="120px"/></asp:TextBox>
</td>
                </tr>
                <tr>
                    <td style="width: 56px">
                        <asp:Label ID="Label4" runat="server" Text="起始时间:"></asp:Label></td>
                    <td style="width: 192px">
                        <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="False"
                            DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("OutHour") %>'
                            Width="40px">
                          <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                        </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                            ID="WebDropDownList2" runat="server" AutoInsertEmptyData="False" DriverObject=""
                            Filter="" FilterObject="" SelectedValue='<%# Bind("OutSecond") %>' Width="40px">
                         <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                        </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                    <td style="width: 34px">
                        <asp:Label ID="Label5" runat="server" Text="终止时间:" Width="61px"></asp:Label></td>
                    <td style="width: 317px">
                        <InfoLight:WebDropDownList ID="WebDropDownList3" runat="server" AutoInsertEmptyData="False"
                            DriverObject="" Filter="" FilterObject="" SelectedValue='<%# Bind("BackHour") %>'
                            Width="40px">
                          <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                        </InfoLight:WebDropDownList><span style="color: black">时</span><InfoLight:WebDropDownList
                            ID="WebDropDownList4" runat="server" AutoInsertEmptyData="False" DriverObject=""
                            Filter="" FilterObject="" SelectedValue='<%# Bind("BackSecond") %>' Width="40px">
                           <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                        </InfoLight:WebDropDownList><span style="color: black">分</span></td>
                </tr>
                <tr>
                    <td style="width: 56px">
                        <asp:Label ID="Label6" runat="server" Text="目的地:"></asp:Label></td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox4" runat="server" MaxLength="95" Text='<%# Bind("Destination") %>'
                            Width="440px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 56px">
                        <asp:Label ID="Label7" runat="server" Text="备注:"></asp:Label></td>
                    <td colspan="3">
                        <asp:TextBox ID="TextBox5" runat="server" MaxLength="95" Text='<%# Bind("Remark") %>'
                            Width="440px"></asp:TextBox></td>
                </tr>
            </table>
            </InsertItemTemplate>
            <ItemTemplate>
                <table class="container_table" style="width: 700px">
                    <tr>
                        <td style="width: 54px">
                            <asp:Label ID="CaptionOutId" runat="server" Text="编号:"></asp:Label></td>
                        <td style="width: 192px">
                            <asp:TextBox ID="OutIdTextBox" runat="server" ReadOnly="True" Text='<%# Bind("OutId") %>'
                                Width="120px"></asp:TextBox></td>
                        <td style="width: 55px">
                            <asp:Label ID="CaptionIDepartmentName" runat="server" Text="所属部门:" Visible='<%#IsDepVisible(Eval("DepartmentName").ToString()) %>'></asp:Label></td>
                        <td style="width: 291px">
                            <asp:Label ID="DepartmentNameLabel" runat="server" Text='<%# Bind("DepartmentName") %>'></asp:Label>&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 54px; height: 26px;">
                            <asp:Label ID="CaptionEmployeeId" runat="server" Text="员工工号:"></asp:Label></td>
                        <td style="width: 192px; height: 26px;">
                            <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px">
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 55px; height: 26px;">
                            <asp:Label ID="CaptionCurrDate" runat="server" Text="日期:"></asp:Label></td>
                        <td style="width: 291px; height: 26px">
                            <InfoLight:WebDateTimePicker ID="WebDateTimePicker1" runat="server" DateFormat="ShortDate"
                                DateTimeType="DateTime" Localize="False" MaxYear="2050" MinYear="1950" ReadOnly="True"
                                Text='<%# Eval("CurrDate","{0:yyyy-MM-dd}") %>' UseButtonImage="True" Width="100px"></InfoLight:WebDateTimePicker></td>
                    </tr>
                    <tr>
                        <td style="width: 54px">
                            <asp:Label ID="CaptionOutTime" runat="server" Text="起始时间:"></asp:Label></td>
                        <td style="width: 192px; ">
                            <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Enabled="False" Filter="" FilterObject="" SelectedValue='<%# Bind("OutHour") %>'
                                Width="40px">
                                  <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                            </InfoLight:WebDropDownList>时<InfoLight:WebDropDownList ID="WebDropDownList2" runat="server"
                                AutoInsertEmptyData="False" DriverObject="" Enabled="False" Filter="" FilterObject=""
                                SelectedValue='<%# Bind("OutSecond") %>' Width="40px">
                                 <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList>分</td>
                        <td style="width: 55px">
                            <asp:Label ID="CaptionBackTime" runat="server" Text="终止时间:"></asp:Label></td>
                        <td style="width: 291px">
                            <InfoLight:WebDropDownList ID="WebDropDownList3" runat="server" AutoInsertEmptyData="False"
                                DriverObject="" Enabled="False" Filter="" FilterObject="" SelectedValue='<%# Bind("BackHour") %>'
                                Width="40px">
                                  <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem Selected="True">8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>21</asp:ListItem>
                                <asp:ListItem>22</asp:ListItem>
                                <asp:ListItem>23</asp:ListItem>
                            </InfoLight:WebDropDownList>时<InfoLight:WebDropDownList ID="WebDropDownList4" runat="server"
                                AutoInsertEmptyData="False" DriverObject="" Enabled="False" Filter="" FilterObject=""
                                SelectedValue='<%# Bind("BackSecond") %>' Width="40px">
                                <asp:ListItem Selected="True">00</asp:ListItem>
                                 <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                                <asp:ListItem>30</asp:ListItem>
                                <asp:ListItem>40</asp:ListItem>
                                <asp:ListItem>50</asp:ListItem>
                            </InfoLight:WebDropDownList>分</td>
                    </tr>
                    <tr>
                        <td style="width: 54px">
                            <asp:Label ID="CaptionDestination" runat="server" Text="目的地:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="DestinationTextBox" runat="server" Text='<%# Bind("Destination") %>'
                                Width="440px" ReadOnly="True"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 54px">
                            <asp:Label ID="CaptionRemark" runat="server" Text="备注:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="RemarkTextBox" runat="server" Text='<%# Bind("Remark") %>' Width="440px" ReadOnly="True"></asp:TextBox></td>
                    </tr>
                </table>
            </ItemTemplate>
            <Fields>
                <InfoLight:FormViewField ControlID="TextBox3" FieldName="OutId" />
                <InfoLight:FormViewField ControlID="WebRefVal1" FieldName="EmployeeId" />
                <InfoLight:FormViewField ControlID="ZLTextBox2" FieldName="CurrDate" />
                <InfoLight:FormViewField ControlID="WebDropDownList1" FieldName="OutHour" />
                <InfoLight:FormViewField ControlID="WebDropDownList2" FieldName="OutSecond" />
                <InfoLight:FormViewField ControlID="WebDropDownList3" FieldName="BackHour" />
                <InfoLight:FormViewField ControlID="WebDropDownList4" FieldName="BackSecond" />
            </Fields>
        </InfoLight:WebFormView>
</asp:Content>

